package pers.vic.upload.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * 描述: 文件上传配置的参数
 * @author Vic.xu
 * @date 2022-07-15 9:33
 */
@Configuration
@ConfigurationProperties(prefix = "upload")
public class UploadProperties {


    /**
     * 文件所在文件夹
     */
    private String folder;

    /**
     * 是否需要登录 测试的时候放开
     */
    private boolean needLogin;

    public String getFolder() {
        return folder;
    }

    public void setFolder(String folder) {
        this.folder = folder;
    }

    public boolean isNeedLogin() {
        return needLogin;
    }

    public void setNeedLogin(boolean needLogin) {
        this.needLogin = needLogin;
    }
}
